
	var oTop= document.getElementById('top')
	function move(){
		var con=document.getElementById('momo').getElementsByTagName('ul');
		var btn=document.getElementById('hea').getElementsByTagName('li');
			//console.log(btn);
			//console.log(con);
			//取消初始状态下四个ul叠在一起的情况
			for(var j=0;j<con.length;j++){
				con[j].style.display='none';
			}
			con[0].style.display='block';
			for(var i=0;i<btn.length;i++){
				btn[i].onclick=function(){
					// console.log(this);
					var index=this.getAttribute('index');//通过index分辨
					// console.log(index);
					for(var j=0;j<con.length;j++){
						con[j].style.display='none'; 
					}
					con[index].style.display='block';
				}

			}
	}
	move()
	function nav(){
		var oLi=oTop.getElementsByTagName('ul')[0].getElementsByTagName('li')[1];//拿到ul下第二个li
		var oFl=document.getElementById('fulan');//拿到fulan
		// console.log(oFl)
		oLi.onmouseover=function(){     //鼠标移入li fulan  block
			oFl.style.display='block';
		}
		oLi.onmouseout=function(){		//鼠标移出li fulan none
			oFl.style.display='none';	
		}
		oFl.onmouseover=function(){		//鼠标移入fulan  block
			oFl.style.display='block';
		}
		oFl.onmouseout=function(){
			oFl.style.display='none';	//鼠标移出fulan none
		}
	}
	nav()

	